package com.liyuxiang.yygh.hosp.repository;

import com.liyuxiang.yygh.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface ScheduleRepository extends MongoRepository<Schedule, String> {
    Schedule getSchedulesByHoscodeAndHosScheduleId(String hoscode,String hosScheduleId);
    List<Schedule> getScheduleByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date workDate);

    Schedule getScheduleById(String scheduleId);
}
